package com;

import com.fz.entity.User;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by webrx on 2017-09-11.
 */
public class Aoptest {
    @Test
    public void t(){
        ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
        User u=ctx.getBean(User.class);
        System.out.println(u);
        u.save();
        u.saveBook();
        u.addUser();
        ctx.close();
    }
}
